// 创建用户约束条件
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const usersSchema = new Schema({
    user_name: {
        type: String,
        unique: true,
        required: true,
    },
    password: {
        type: String,
        unique: false,
        required: true,
    }
})
// 创建模型对象
const Users = mongoose.model('users', usersSchema);
module.exports = Users;